package com.rxt.thermopro.viewmodel

import com.app.common.viewmodel.BaseViewModel
import com.app.common.viewmodel.EventLiveData
import com.rxt.thermopro.bean.EventAlarmTextData

class BlockTimerViewModel:BaseViewModel() {

    val alarmClockText1: EventLiveData<HashMap<Long, EventAlarmTextData>> = EventLiveData()
    val alarmClockText2: EventLiveData<HashMap<Long, EventAlarmTextData>> = EventLiveData()
    val alarmClockText3: EventLiveData<HashMap<Long, EventAlarmTextData>> = EventLiveData()
    val alarmClockText4: EventLiveData<HashMap<Long, EventAlarmTextData>> = EventLiveData()


    val numberPickValues: EventLiveData<HashMap<Int, MutableList<String>>> = EventLiveData()


    fun getNumberPickValues(){
        val items1= mutableListOf<String>()
        for (i in 0..23){
            items1.add(i.toString())
        }
        val items2= mutableListOf<String>()
        for (i in 0..59){
            items2.add(i.toString())
        }
        numberPickValues.value= hashMapOf<Int, MutableList<String>>().apply {
            this[0]=items1
            this[1]=items2
            this[2]=items2
        }
    }
}